Skip to content

fix: prevent NPE when Camera.entity is null#778

Merged
Ocelot5836 merged 1 commit intoryanhcode:mainfrom
CaiBai-Fish:fix-camera-null
May 8, 2026
Merged

fix: prevent NPE when Camera.entity is null#778
Ocelot5836 merged 1 commit intoryanhcode:mainfrom
CaiBai-Fish:fix-camera-null

Conversation

@CaiBai-Fish
Copy link
Copy Markdown
Contributor

Leawind‘s Third Person may temporarily set camera entity to null, causing Sable to crash at entity.level().

Add null check and fallback to original behavior.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 6, 2026

CLA assistant check
All committers have signed the CLA.

Leawind‘s Third Person may temporarily set camera entity to null,
causing Sable to crash at entity.level().

Add null check and fallback to original behavior.
@Ocelot5836 Ocelot5836 merged commit 5dc5fa6 into ryanhcode:main May 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants